<form action="{:url()}" method="post" class="form_single">
    <div class="box">
      <div class="box-body">
        <div class="row">
          <div class="col-md-6">
            <div class="form-group">
              <label>学生姓名</label>
              <span>（学生姓名，用于前端展示）</span>
              <input class="form-control" name="studentname" placeholder="请输入学生姓名" value="{$info['studentname']|default=''}" type="text">
            </div>
          </div>
            
          <div class="col-md-6">
            <div class="form-group">
              <label>学生年龄</label>
  <select name="age" class="form-control">
    <option value="0"{notempty name='info'}{if condition="$info['age'] eq '18'"} selected="selected"{/if}{/notempty}>18</option>
     <option value="1"{notempty name='info'}{if condition="$info['age'] eq '19'"} selected="selected"{/if}{/notempty}>19</option>
     <option value="2"{notempty name='info'}{if condition="$info['age'] eq '20'"} selected="selected"{/if}{/notempty}>20</option>
     <option value="3"{notempty name='info'}{if condition="$info['age'] eq '21'"} selected="selected"{/if}{/notempty}>21</option>
     <option value="4"{notempty name='info'}{if condition="$info['age'] eq '22'"} selected="selected"{/if}{/notempty}>22</option>
     <option value="5"{notempty name='info'}{if condition="$info['age'] eq '23'"} selected="selected"{/if}{/notempty}>23</option>
     <option value="6"{notempty name='info'}{if condition="$info['age'] eq '24'"} selected="selected"{/if}{/notempty}>24</option>
     <option value="7"{notempty name='info'}{if condition="$info['age'] eq '25'"} selected="selected"{/if}{/notempty}>25</option>
     <option value="8"{notempty name='info'}{if condition="$info['age'] eq '26'"} selected="selected"{/if}{/notempty}>26</option>
     <option value="9"{notempty name='info'}{if condition="$info['age'] eq '27'"} selected="selected"{/if}{/notempty}>27</option>

       </select>
            </div>
          </div>


          </div>
        </div>
        
      <div class="box-footer">
          
        <input type="hidden" name="id" value="{$info['id']|default='0'}"/>
        
        {include file="layout/edit_btn_group"/}
      </div>
        
      </div>

</form>